package com.zjitc.book.mapper;

import com.zjitc.book.entity.Book;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface BookMapper {

    @Select("select * from book")
    public List<Book> getBooks();

    @Select("select * from book where id=#{id}")
    public Book getBookById(@Param("id") Long id);


    public List<Book> searchBooksByConditions();
}
